package priv.wangy.micro.common.po.http.req;

import jakarta.validation.constraints.Min;
import lombok.Data;

/**
 * @author zhangjq
 * @see PageHelper
 * @since 2023-11-14
 */
@Data
public class PageReq {
    /**
     * 页码
     */
    @Min(value = 1, message = "页码不能小于1")
    private int pageNum;
    /**
     * 页面大小
     */
    @Min(value = 1, message = "分页大小不能小于1")
    private int pageSize;

    public PageReq getPageReq() {
        return this;
    }
}
